package grp.test.dao;

import grp.test.pojo.Book;
import org.omg.CosNaming.NamingContextExtPackage.StringNameHelper;

import java.util.List;

public interface BookMapper {
    int deleteByPrimaryKey(Integer bookId);
    int updateStore(Book record);
    int insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Integer bookId);
    Book selectByBookName(String bookName);
    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);

    Book getBook(Integer bookId);
    List<Book> getBookListDes(String des);
    List<Book> getBookListName(String bookname);
    List<Book> getBookList(String bookname, String des);

    List<Book> selectAllBy();

    int queryBookType(int bookId);
}